<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> 
    <link id="editCss" rel="stylesheet" type="text/css" href="<%=path%>/css/right.css" />
<div class="tableBox" style="background:#556272;">
	<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
		<tr>
			<th>企业代码</th>
			<th>公司名称</th>
			<th>联系人</th>
			<th>联系电话</th>
			<th>城市</th>
			<th>更新时间</th>
			<th>状 态</th>
			<th>操  作</th>
		</tr>
		<c:if test="${null != list }">
		<c:forEach items="${list}" var="cus" varStatus="index">
		<tr>
			<td><c:out value=" ${cus['CUSTOMER_ID']}"></c:out>&nbsp;</td>
			<td>${cus["COMPANY"]}&nbsp;</td>
			<td>${cus["CONTACT_NAME"]}&nbsp;</td>
			<td>${cus["CONTACT_PHONE"]}&nbsp;</td>
			<td>${cus["CITY"]}&nbsp;</td>
			<td>${cus["LAST_UPDATETIME"]}&nbsp;</td>
			<td>${cus["STATUS"]=="0"?"正常":"锁定"}&nbsp;</td>                     
			<td>	                                            
				<a  href="<%=path %>/servlet/UpdateServlet?key=toUp&cid=${cus['CUSTOMER_ID']}" ><img src="<%=path%>/images/icon/list_edit.gif" />修改</a>|
				<a onclick="return confirm('确定删除 客户[ ${cus['CUSTOMER_ID']} ] ?该客户下的所有用户将全部被删除!');"  href="<%=path %>/servlet/DelServlet?key=doDelCus&cid=${cus['CUSTOMER_ID']}" ><img src="<%=path%>/images/icon/list_del.gif" />删除</a>
			</td>
		</tr>
		</c:forEach>
		</c:if>
	</table>
</div>
